#!/bin/bash

ping -c 1 ccopt.ihep.ac.cn

[[ $? -ne 0 ]] && echo "network bad!" && exit 1

echo "network good!"
exit 0
